package model;

public class Move {
	public Square begin;
	public Square end;

	public Move(Square s1, Square s2) {
		begin = s1;
		end = s2;
	}
	
	public Move(Move move) {
		this.begin = move.begin;
		this.end = move.end;
	}

	public boolean isEqual(Move m) {
		return ( (m.begin == begin) && (m.end == end));
	}
	
	@Override
	public String toString() {
		return begin.toString() + "-" + end.toString(); 
	}
}
